import request from "../utils/request";

export type Common<T> =  {
    code:string
    data:T
    msg:string
    time:string
}

export type CompanyType =  {
    readonly id: string
    name: string
    description: string
    ImgPth: string
}


export const getCompanyList = () => {
    return request<CompanyType[]>({
        method: "GET",
        url: "company"
    })
}

